/* Base theme styles */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --glass: rgba(255, 255, 255, 0.08);
  --border: 1px solid rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  --muted: rgba(255, 255, 255, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #fff; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus {
  top: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  min-height: 70px;
}

.brand {
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* Main content */
main {
  padding: 2rem 0;
}

/* Members page additions */
.members-page .section-title { 
  margin: 1.2rem 0 0.25rem; 
  line-height: 1.3;
  font-size: 2.5rem;
  text-align: center;
}

.members-page .section-subtitle { 
  color: var(--muted); 
  margin: 0 0 2rem; 
  line-height: 1.5;
  text-align: center;
  font-size: 1.1rem;
}

/* Accordion shell matches glass theme */
.accordion {
  margin: 1rem 0; 
  border-radius: 16px; 
  border: var(--border);
  background: rgba(255, 255, 255, 0.06); 
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow); 
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.accordion:hover {
  box-shadow: var(--shadow), 0 4px 20px rgba(0, 0, 0, 0.1);
}

.acc-head {
  width: 100%; 
  display: flex; 
  align-items: center; 
  gap: 0.75rem;
  justify-content: space-between; 
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.08); 
  color: #fff; 
  border: 0;
  cursor: pointer; 
  font-weight: 800; 
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  position: relative;
  font-size: 1.1rem;
}

.acc-head:hover {
  background: rgba(255, 255, 255, 0.12);
}

.acc-head:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

.acc-head .head-icon { 
  flex: 0 0 auto; 
  border-radius: 8px;
  width: 32px; 
  height: 32px; 
  object-fit: contain; 
  opacity: 0.9;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
  font-size: 10px;
}

.acc-head .icon { 
  width: 22px; 
  height: 22px; 
  transform: rotate(-90deg);
  transition: transform 0.25s ease; 
  fill: #fff; 
  opacity: 0.85;
  flex-shrink: 0;
}

.acc-head[aria-expanded="true"] .icon { 
  transform: rotate(0deg); 
}

.acc-panel[hidden] { 
  display: none; 
}

.acc-panel { 
  padding: 0.5rem 0;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive card grid */
.cards {
  display: grid; 
  gap: 16px; 
  padding: 1rem 1rem 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 0.8rem;
  }
}

.card {
  display: grid; 
  justify-items: center; 
  text-align: center; 
  gap: 0.5rem;
  padding: 1rem; 
  border-radius: 16px; 
  border: var(--border);
  background: var(--glass); 
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 8px 25px rgba(0, 0, 0, 0.15);
}

.avatar {
  width: 140px; 
  height: 140px; 
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.1) 25%, 
    rgba(255, 255, 255, 0.05) 25%, 
    rgba(255, 255, 255, 0.05) 75%, 
    rgba(255, 255, 255, 0.1) 75%);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.card:hover .avatar {
  transform: scale(1.02);
}

.card h3 { 
  margin: 0.4rem 0 0; 
  font-size: 1.05rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card .role { 
  margin: 0; 
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced accessibility */
.keyboard-nav .acc-head:focus {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.keyboard-nav .card:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
